home *** CD-ROM | disk | FTP | other *** search
/ MacTech 1 to 12 / MacTech-vol-1-12.toast / Source / CDEF Set #1 ƒ / Extras / Demo App Project Files / FxnProtos.h < prev    next >
Encoding:
C/C++ Source or Header  |  1996-11-30  |  1.8 KB  |  42 lines  |  [TEXT/CWIE]

  1. #ifndef __FXNPROTOS__
  2. #define __FXNPROTOS__
  3.  
  4. /**************    Function Prototypes   **************/
  5.  
  6. void             ToolBoxInit ( void );
  7. void             EventInit ( void );
  8. void            MenuBarInit ( void );
  9. void             EventLoop ( void );
  10. void             DoDialogEvent ( EventRecord *eventPtr );
  11. void            SetDialogFontAndSize( DialogRef dialog, short font, short fontSize );
  12. void             InvalidInputDialog ( Str255 inString, Str255 inString2 );
  13. void            HandleTest2 ( void );
  14. void            GetDialogItemHandle( DialogRef dialog, short item, Handle *iHandle );
  15.  
  16.  
  17. pascal OSErr    DoOpenApp  ( AppleEvent theAppleEvent, AppleEvent reply, long refCon );
  18. pascal OSErr    DoOpenDoc  ( AppleEvent theAppleEvent, AppleEvent reply, long refCon );
  19. pascal OSErr    DoPrintDoc ( AppleEvent theAppleEvent, AppleEvent reply, long refCon );
  20. pascal OSErr    DoQuitApp  ( AppleEvent theAppleEvent, AppleEvent reply, long refCon );
  21.  
  22. void             HandleMouseDown ( EventRecord *eventPtr,  short itemHit );
  23. void             HandleMenuChoice ( long menuChoice );
  24. void            HandleFileChoice ( short item );
  25. void             HandleAppleChoice ( short item );
  26. void            HandleEditChoice ( short item );
  27. void            HandleOptionsChoice ( short item );
  28. void             HandleTest1 ( void );
  29. void             DrawAboutDialog ( void );
  30.  
  31.  
  32. // Apple Events
  33.  
  34. OSErr    ProcessItem( FSSpec *inItem );
  35. OSErr    AEHasRequiredParameters( AppleEvent *ae );
  36. pascal    OSErr    AEOpenApplication( AppleEvent *ae, AppleEvent *reply, long refCon );
  37. pascal    OSErr    AEOpenDocuments( AppleEvent *ae, AppleEvent *reply, long refCon );
  38. pascal    OSErr    AEPrintDocuments( AppleEvent *ae, AppleEvent *reply, long refCon );
  39. pascal    OSErr    AEQuitApplication( AppleEvent *ae, AppleEvent *reply, long refCon );
  40. pascal    OSErr    AEHandleDocuments( AppleEvent *ae, AppleEvent *reply, long refCon );
  41. OSErr    AEGetNthFSSpec( AEDescList *documentList, long index, FSSpec *spec );
  42. #endif